/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.Date;
import java.util.List;
import thienphuc.patient.dto.BenhAn;
import thienphuc.patient.dto.DonThuoc;

/**
 *
 * @author QuocDat
 */
public interface DonThuocBO {

    /**
     * Get all DonThuoc
     * @return
     * @throws Exception 
     */
    List<DonThuoc> getAll() throws Exception;
    
    /**
     * Get DonThuoc by MaDonThuoc
     * @param maDonThuoc
     * @return
     * @throws Exception 
     */
    DonThuoc getById(int maDonThuoc) throws Exception;
    
    /**
     * Get DonThuoc by BenhAn
     * @param benhAn
     * @return
     * @throws Exception 
     */
    List<DonThuoc> getByBenhAn(BenhAn benhAn) throws Exception;
    
    /**
     * Get DonThuoc by TrangThaiThanhToan
     * @param trangThaiThanhToan
     * @return
     * @throws Exception 
     */
    List<DonThuoc> getByTrangThaiThanhToan(boolean trangThaiThanhToan) throws Exception;

    /**
     * Get DonThuoc by NgayKeDon
     * @param ngayKeDonStart
     * @param ngayKeDonEnd
     * @return
     * @throws Exception 
     */
    List<DonThuoc> getByNgayKeDon(Date ngayKeDonStart, Date ngayKeDonEnd) throws Exception;
    
    /**
     * Insert DonThuoc
     * @param donThuoc
     * @return
     * @throws Exception 
     */
    boolean insertDonThuoc(DonThuoc donThuoc) throws Exception;
    
    /**
     * Update DonThuoc
     * @param donThuoc
     * @return
     * @throws Exception 
     */
    boolean updateDonThuoc(DonThuoc donThuoc) throws Exception;
}